package com.dmatek.uwb.xml.dom.bean;

import com.dmatek.uwb.xml.dom.annotations.AttributeName;

/***
 * 区域的类
 * @author zhangfu
 * @data 2019年6月12日 下午5:45:53
 * @Description 
 */
public class Region implements DomElement{
	public final static String DOM_NAME = "Region";
	@AttributeName("rid")
	private String id;
	@AttributeName("nid")
	private String nId;
	@AttributeName("start")
	private Point start;
	@AttributeName("end")
	private Point end;
	public Region() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Region(String id, String nId, Point start, Point end) {
		super();
		this.id = id;
		this.nId = nId;
		this.start = start;
		this.end = end;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getnId() {
		return nId;
	}
	public void setnId(String nId) {
		this.nId = nId;
	}
	public Point getStart() {
		return start;
	}
	public void setStart(Point start) {
		this.start = start;
	}
	public Point getEnd() {
		return end;
	}
	public void setEnd(Point end) {
		this.end = end;
	}
	@Override
	public String getDomName() {
		return DOM_NAME;
	}
	@Override
	public String toString() {
		return "Region [id=" + id + ", nId=" + nId + ", start=" + start
				+ ", end=" + end + "]";
	}
}
